<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                template="WEB-INF/template.xhtml">
    <ui:param name="page_title" value="Register"/>
    <h:form id="formRegister">
        <h:outputLabel for="regName" id="lblRegName" value="Name"/>
        <h:inputText id="regName" value="#{RegisterBackingBean.name}" /><br/>
        <p:message for="regName" />
        <h:outputLabel for="email" value="Email" />
        <h:inputText id="email"  value="#{RegisterBackingBean.email}" /><br/>
        <p:message for="email" />
        <h:outputLabel for="password" value="Password" />
        <h:inputSecret redisplay="false" value="#{RegisterBackingBean.password}" id="password" />
        <p:message for="password" />
        <h:outputLabel for="password" value="Confirm Password" />
        <h:inputSecret redisplay="false" value="#{RegisterBackingBean.confirmPassword}" id="confirmPassword" />
        <p:message for="confirmPassword" />     
        <h:commandButton value="Submit" id="btnRegSubmit" action="#{RegisterControllerBean.confirmRegistration()}"/>
    </h:form>
</ui:composition>